package com.example.vv.model.register.base.contract;

import com.example.vv.frameWork.base.BaseView;
import com.example.vv.frameWork.entity.LoginEntity;
import com.example.vv.frameWork.entity.RegisterEntity;
import com.example.vv.frameWork.net.API_FACTORY;
import com.example.vv.req.REQ_LOGIN;
import com.example.vv.res.BaseRespont;

import io.reactivex.Observable;

public interface RegisterContract {
    interface Model {
        /**
         * @param req
         * @return 注册
         */
        default Observable<BaseRespont> req_login(REQ_LOGIN req){
            return API_FACTORY.POST_API_REGISTER(req);
        }
    }

    interface View extends BaseView {

        String getPhone();
        String getCaptcha();
        String getPassword();
        String getRepassWord();
        void setReqisterEntity(RegisterEntity reqisterEntity);
    }

    interface Presenter {
        //注册
        void register();
        //格式
        boolean isFormt();

    }
}
